package com.xuelang.pipeline.app.application.converter;

import com.xuelang.pipeline.client.application.dto.ApplicationComponentDTO;
import com.xuelang.pipeline.client.application.dto.ApplicationDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 应用DTO与应用组件实体转换器
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ApplicationDTOToApplicationComConverter {
    ApplicationDTOToApplicationComConverter INSTANCE = Mappers.getMapper(ApplicationDTOToApplicationComConverter.class);

    /**
     * ApplicationComponentDTO转化为ApplicationDTO
     * @param applicationComponentDTO
     * @return
     */
    ApplicationDTO applicationComToApplicationDTO(ApplicationComponentDTO applicationComponentDTO);

    /**
     * ApplicationDTO转化为ApplicationComponentDTO
     * @param applicationDTO
     * @return
     */
    ApplicationComponentDTO applicationDTOToApplicationCom(ApplicationDTO applicationDTO);
}
